package com.bingquan.company.global.exception;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.xml.transform.Result;
import java.util.Objects;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;

  
//    /**
//     * 删除用户
//     * @return
//     */
//    @DeleteMapping("/{id}")
//    public Result Delete(@PathVariable String id) {
//          User user =  userService.getById(id);
//          if (Objects.isNull(user)) {
//               throw new NotFoundException(400, "用户不存在");
//          }
//          return Result.ok(user);
//    }

    @GetMapping("/globalAttr")
    public String  GetGlobalAttr(@ModelAttribute("globalAttr") String globalAttr){
        return globalAttr;
    }

}